<extend name="base"/>
<block name="body">
<script type='text/javascript' src='__PUBLIC__/Member/js/plugin/masonry/masonry.min.js'></script>
<script language="javascript">$(window).load(wechat_obj.material_init);</script>
<div id="material" class="r_con_wrap">     
	<div class="list">
	    <div class="item first_item">
	        <div>
	            <div><a href="{:U('Material/onenews')}"></a></div>
	            <a href="{:U('Material/onenews')}">+单图文消息</a>
	        </div>
	        <div class="multi">
	            <div><a href="{:U('Material/news')}"></a></div>
	            <a href="{:U('Material/news')}">+多图文消息</a>
	        </div>
	    </div>
	       
        <!-- 显示内容列表  开始 -->
        <foreach name="lists" item="v">
        <eq name="v.msgtype" value="onenews">
            <!-- 显示单图文信息 开始 -->
            <div class="item one masonry-brick" style="position: absolute; top: 167px; left: 0px;">
                <div class="title">{$v['configs']['Title']}</div>
                <div>{$v.createtime|date="Y-m-d",###}</div>
                <div class="img"><img src="{$v['configs']['ImgPath']}"></div>
                <div class="txt">{$v['configs']['BriefDescription']}</div>
                <div class="mod_del">
                 <div class="mod"><a href="{:U('onenews',array('id'=>$v['id']))}"><img src="__PUBLIC__/Member/images/ico/mod.gif"></a></div>
                 <div class="del"><a href="{:U('delNewmsg',array('id'=>$v['id']))}" onclick="if(!confirm('删除后不可恢复，继续吗？')){return false};"><img src="__PUBLIC__/Member/images/ico/del.gif"></a></div>
               
                </div>
            </div>
            <!-- 显示单图文信息 结束 -->
        </eq>
        <eq name="v.msgtype" value="news" >
            <div class="item multi masonry-brick" style="position: absolute; top: 0px; left: 367px;">
                                    <div class="time">{$v.createtime|date="Y-m-d",###}</div>
                <div class="first">
                    <div class="info">
                        <div class="img"><img src="{$v['configs'][0]['ImgPath']}"></div>
                        <div class="title">{$v['configs'][0]['Title']}</div>
                    </div>
                </div>
                <volist name="v['configs']" id="vv" offset="1">
                 <div class="list">
                      <div class="info">
                          <div class="title">{$vv.Title}</div>
                          <div class="img"><img src="{$vv.ImgPath}"></div>
                      </div>
	              </div>
	             </volist>
	                <div class="mod_del">
	                 <div class="mod"><a href="{:U('news',array('id'=>$v['id']))}"><img src="__PUBLIC__/Member/images/ico/mod.gif"></a></div>
	                 <div class="del"><a href="{:U('delNewmsg',array('id'=>$v['id']))}" onclick="if(!confirm('删除后不可恢复，继续吗？')){return false};"><img src="__PUBLIC__/Member/images/ico/del.gif"></a></div>
	                </div>
	            </div>
        </eq>
        </foreach>             
	        <!-- 显示内容列表  结束 -->             
	    <div class="clear"></div>
	</div>
	<div class="blank12"></div>
	<div id="turn_page">{$page}</div>
</div>
</block>
